#include "settings.h"

//#include "inih/cpp/INIReader.h"

SettingsHolder::SettingsHolder() {}

const Settings &SettingsHolder::GetSettings() {
    return settings_;
}

const Settings &SettingsHolder::ReadSettings(const std::string &filename) {
  /*
    INIReader reader(filename);

    settings_.catchNativeErrors = reader.GetBoolean("General", "catchNativeErrors", true);
    settings_.exitOnNativeError = reader.GetBoolean("General", "exitOnNativeError", false);

    settings_.catchRuntimeErrors = reader.GetBoolean("General", "catchRuntimeErrors", true);
    settings_.exitOnRuntimeError = reader.GetBoolean("General", "exitOnRuntimeError", false);
*/
    settings_.catchNativeErrors = true;
    settings_.exitOnNativeError = false;
    settings_.catchRuntimeErrors = true;
    settings_.exitOnRuntimeError = false;
    return settings_;
}